SDR Customization using Call Variables Example
This section provides an example of using a call variable to customize the SDR. The example includes the following:
|
■
|
Uses the call variable Var.Call.Src.UserDefined1 in a Message Manipulation rule to store the value of the SIP header "X-AccountNumber" received in a 200 OK response. |
|
■
|
Customizes the SDR in the SBC SDR Format table to add a field titled "Account" whose value is obtained from the call variable Var.Call.Src.UserDefined1 used in the Message Manipulation rule. |
|
➢
|
To customize SDR using a call variable: |
|
●
|
'Name': Store X-AccountNumber header |
|
●
|
'Manipulation Set ID': 0 |
|
●
|
'Message Type': Invite.Response.2xx |
|
●
|
'Action Subject': Var.Call.Src.UserDefined1 |
|
●
|
'
Action Value': Header.X-AccountNumber |
|
2.
|
In the SBC SDR Format table, configure the following rule: |
|
●
|
'Field Type': Ingress Var Call User Defined 1 |
The following shows an example of a received SIP 200 OK response message with the X-InContact-BusNo header:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.28.244.31:5060;branch=z9hG4bKac166782921
Contact: <sip:Stack@10.21.19.151:5060>
To: <sip:+18017155444@abc.com>;tag=87245f3d
From: "usera"<sip:usera@abc.com>;tag=1c1187059515
Call-ID: 628022773122202022133@172.28.244.31
CSeq: 1 INVITE
Session-Expires: 1200;refresher=uas
Content-Type: application/sdp
Supported: timer
X-AccountNumber: 87654321
The following shows the SDR generated by the device:
18:14:56.981 10.8.5.191 local6.notice [S=1] |Account|
18:23:32.319 10.8.5.191 local6.notice [S=2] |87654321|